package com.hsnn.medstgmini.base.dict.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * DicDrugmaterial entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="dic_drugmaterial")

public class DicDrugmaterial  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = -8292120610536826623L;
	private String materialId; //材质ID
     private String materialCode;//材质编码
     private String materialName;//材质
     private Integer status;//状态 1启用0停用
     private Timestamp updDatetime;//更新时间
     private String updUser;//更新人
     private Short sortId;//排序id


    // Constructors

    /** default constructor */
    public DicDrugmaterial() {
    }

	/** minimal constructor */
    public DicDrugmaterial(String materialCode, String materialName) {
        this.materialCode = materialCode;
        this.materialName = materialName;
    }
    
    /** full constructor */
    public DicDrugmaterial(String materialCode, String materialName, Integer status, Timestamp updDatetime, String updUser, Short sortId) {
        this.materialCode = materialCode;
        this.materialName = materialName;
        this.status = status;
        this.updDatetime = updDatetime;
        this.updUser = updUser;
        this.sortId = sortId;
    }

   
    // Property accessors
    @Id
    @GenericGenerator(name="generator", strategy="uuid")
    @GeneratedValue(generator="generator")
    @Column(name="material_id", unique=true, nullable=false, length=36)

    public String getMaterialId() {
        return this.materialId;
    }
    
    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }
    
    @Column(name="material_code", nullable=false, length=10)

    public String getMaterialCode() {
        return this.materialCode;
    }
    
    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }
    
    @Column(name="material_name", nullable=false, length=100)

    public String getMaterialName() {
        return this.materialName;
    }
    
    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }
    
    @Column(name="status")

    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Column(name="upd_datetime", length=19)

    public Timestamp getUpdDatetime() {
        return this.updDatetime;
    }
    
    public void setUpdDatetime(Timestamp updDatetime) {
        this.updDatetime = updDatetime;
    }
    
    @Column(name="upd_user", length=36)

    public String getUpdUser() {
        return this.updUser;
    }
    
    public void setUpdUser(String updUser) {
        this.updUser = updUser;
    }
    
    @Column(name="sort_id")

    public Short getSortId() {
        return this.sortId;
    }
    
    public void setSortId(Short sortId) {
        this.sortId = sortId;
    }
   








}